Esempio n. 1
0
        public async Task <IActionResult> Create(PaRequestDTO model)
        {
            try
            {
                await _paRequestRepository.CreatePaRequest(model);

                var status = true;
                return(Ok(status));
            }
            catch (Exception ex)
            {
                var status = false;
                return(BadRequest(status));
            }
        }
Esempio n. 2
0
        public async Task CreatePaRequest(PaRequestDTO paRequestDTO)
        {
            await _context.AddRangeAsync(paRequestDTO.PaRequests);

            await _context.SaveChangesAsync();
        }