Exemple #1
0
        public IHttpActionResult DeletePatient(int RecordID)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest("Not a valid model"));
            }

            if (!dao.DeleteRecord(RecordID))
            {
                return(BadRequest("Not a valid model"));
            }

            return(Ok());
        }