Пример #1
0
        public ActionResult LeaveRequest(LeaveModel leaveModel)
        {
            leaveModel.Status = "Pending";
            var leaveRequest = AutoMapper.Mapper.Map <LeaveModel, Leave>(leaveModel);

            employeeBL.AddLeaveRequest(leaveRequest);
            return(View());
        }