Jayanth Reddy

Jayanth Reddy

  • NA
  • 250
  • 9.9k

how to perform post operation for only attendance property

May 28 2020 12:14 AM
  1. export interface EmpAttendence {  
  2. date: Date;  
  3. AttendanceValue: string;  
  4. }  
  5. import { EmpAttendence } from './attendance.model';  
  6. export interface Employee {  
  7. id: number;  
  8. Name: string;  
  9. Gender: string;  
  10. Email?: string;  
  11. phoneNumber?: number;  
  12. ContactPreference: string;  
  13. DateOfBirth: Date;  
  14. Department: string;  
  15. IsActive: boolean;  
  16. PhotoPath?: string;  
  17. present?: boolean;  
  18. leave?: boolean;  
  19. holiday?: boolean;  
  20. Attendance?: EmpAttendence[];  
  21. }  
Above are model of my employee object.I have performed the get,post put and delete operations successfully.Now after performing post operation(i.e, after creating employees) i want to take their attendance by picking date from datepicker.Can someone help me how to insert values into the specific property(only attendance property) of existing employee. Forgive me if my question is wrong.I am struggling from lot of time.

Answers (3)