Example #1
0
        public IHttpActionResult PostPatient([FromBody] Record bn)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest("Not a valid model"));
            }

            if (dao.PostRecord(bn) == false)
            {
                return(BadRequest("Not a valid model"));
            }

            return(Ok());
        }