Beispiel #1
0
 public IActionResult AddLeaverequest([FromBody] LeaveRequest model)
 {
     model.RequestDate = DateTime.Now;
     LeaveRequest_repo.Add(model);
     return(new OkObjectResult(new { LeaverequestID = model.LeaveRequestId }));
 }
 public void Add(LeaveRequest entity)
 {
     _leaveRequestRepository.Add(entity);
 }