Exemplo n.º 1
0
        public async Task <IActionResult> DeleteAsync(int Id)
        {
            var result = await _iUserGroupService.DeleteByIdAsync(Id);

            if (result.Success)
            {
                return(Ok(result.Message));
            }
            else
            {
                return(BadRequest(result.Message));
            }
        }