コード例 #1
0
        public async Task <ActionResult <IEnumerable <WorkLoad> > > SetDebts([FromBody] Debt model, [FromRoute] long workLoadRegistryId)
        {
            try
            {
                await _workLoadRepository.UpdateRegistry(workLoadRegistryId);

                return(Ok(await _debtRepository.Create(model)));
            }
            catch (Exception ex)
            {
                return(BadRequest(ex.Message));
            }
        }