Esempio n. 1
0
        public async Task <IActionResult> Delete(int id, int newId)
        {
            if (id <= 0)
            {
                return(BadRequest("Invalid id provided"));
            }

            var response = await sectorService.DeleteAsync(id, newId);

            if (!response.Success)
            {
                return(BadRequest(response.Message));
            }
            return(Ok(true));
        }