public IHttpActionResult GetAll() { PersonBLL bll = new PersonBLL(); var persons = bll.GetAll(); if (persons == null) { return(Content(HttpStatusCode.NotFound, "No persons exist.")); } else { return(Ok(persons)); } }
public IActionResult GetAll() { var response = logicBll.GetAll(); return(StatusCode((int)response.Message.Status, response)); }