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); }