Beispiel #1
0
        public async Task <ActionResult> CreatePayroll([FromBody] PayrollCreateDTO payrollDTO)
        {
            var payrollObj = await _repository.CreatePayroll(payrollDTO);

            return(CreatedAtAction(nameof(GetPayroll), new { id = payrollObj.Id }, payrollObj));
        }