public IHttpActionResult GetAllProject() { List <Object> list = new List <Object>(); list = projectLogic.GetListProject(); if (list == null) { //La respuesta no tiene contenido code 204 return(StatusCode(HttpStatusCode.NoContent)); } else { // ok code 200 return(Ok(list)); } }