예제 #1
0
        public IActionResult SaveDF([FromBody] DisbursementViewModel dfViewModel)
        {
            bool status = disbursementFormService.CreateDisbursementForm(dfViewModel.srrfAssignedList, dfViewModel.employee, dfViewModel.comment);

            if (status)
            {
                return(Ok(dfViewModel));
            }
            else
            {
                return(null);
            }
        }
예제 #2
0
        public IActionResult CreateDF([FromBody] DisbursementViewModel dVModel)
        {
            bool status = dfService.CreateDisbursementForm(dVModel.srrfAssignedList, dVModel.employee, dVModel.comment);

            if (status is true)
            {
                return(new JsonResult(new { success = "Success" }));
            }
            else
            {
                return(new JsonResult(new { success = "Failure" }));
            }
        }