public IHttpActionResult GetAllProjects() { try { var allProjects = projHandler.GetAllProjects(); if (allProjects.Count == 0) { return(NotFound()); } return(Ok(allProjects)); } catch (Exception ex) { return(InternalServerError(ex)); } }