Exemplo n.º 1
0
        public IActionResult Delete(int id)
        {
            var validDelete = _storage.ReadDepartment(id);

            if (validDelete != null)
            {
                return(Ok(_storage.DeleteDepartment(id)));
            }
            return(BadRequest());
        }
Exemplo n.º 2
0
 public IActionResult DeleteADepartment(int id)
 {
     return(Ok(_storage.DeleteDepartment(id)));
 }