コード例 #1
0
        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));
            }
        }
コード例 #2
0
        public IActionResult GetAll()
        {
            var response = logicBll.GetAll();

            return(StatusCode((int)response.Message.Status, response));
        }