public IHttpActionResult GetRegionalBloc(string id) { RegionalBloc regionalBloc = db.RegionalBlocs.Find(id); if (regionalBloc == null) { return(NotFound()); } return(Ok(regionalBloc)); }
public IHttpActionResult DeleteRegionalBloc(string id) { RegionalBloc regionalBloc = db.RegionalBlocs.Find(id); if (regionalBloc == null) { return NotFound(); } db.RegionalBlocs.Remove(regionalBloc); db.SaveChanges(); return Ok(regionalBloc); }