public IHttpActionResult GetByHasNotWorker() { List <Project> projects = projectDal.GetByHasNotWorker(); if (projects != null) { return(Ok(projects)); } else { return(NotFound()); } }
public ActionResult Index() { List <Project> projects = _projectDal.GetByHasNotWorker(); return(View(projects)); }