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

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