Ejemplo n.º 1
0
        public IActionResult DeleteAllergy(int medicalChartId, int id)
        {
            if (!_allergyService.Exist(id, medicalChartId))
            {
                return(NotFound());
            }

            _allergyService.Delete(id);

            return(NoContent());
        }
Ejemplo n.º 2
0
 public ActionResult Delete(int id)
 {
     return(Ok(
                allergyService.Delete(id)
                ));
 }
Ejemplo n.º 3
0
        // DELETE api/<controller>/5
        public IHttpActionResult Delete(int id)
        {
            var result = allergyService.Delete(id);

            return(Ok(result));
        }