コード例 #1
0
 public IActionResult CreateOrUpdatePayrollTax(string month, [FromBody] PayrollMonthTax monthTax)
 {
     try
     {
         payrollService.CreatePayroll(monthTax, payrollService.OrganisationId, month);
         return(Ok(monthTax));
     }
     catch (Exception ex)
     {
         return(BadRequest(new Error(ex.Message)));
     }
 }