public ActionResult Delete(int id) { var prj = _dao.GetById(id); if (prj == null) { return(Ok(new ProjectResponse(null, $"Project {id} not exists!"))); } _dao.Delete(prj); _dao.Save(); return(Ok(new ProjectResponse(prj, $"Project {prj.Name} deleted!"))); }