コード例 #1
0
        public async Task <IActionResult> AddLeavePolicy(TotalLeave totalLeave)
        {
            totalLeave.UpdateDateTime = DateTime.Now.ToShortDateString();
            var createdTotalLeave = await LeaveRepo.AddLeavePolicy(totalLeave);

            return(Created(
                       createdTotalLeave.Id.ToString(),
                       createdTotalLeave
                       ));
        }