public async Task <IActionResult> AddLeavePolicy(TotalLeave totalLeave) { totalLeave.UpdateDateTime = DateTime.Now.ToShortDateString(); var createdTotalLeave = await LeaveRepo.AddLeavePolicy(totalLeave); return(Created( createdTotalLeave.Id.ToString(), createdTotalLeave )); }