public ActionResult Delete(int id) { Location location = _dao.Get(id); if (location == null) { return(NotFound("Location does not exist")); } _dao.Delete(id); return(NoContent()); }
public IResult Delete(Location location) { _locationDao.Delete(location); return(new SuccessResult(true, ResultMessages.LocationDeleted)); }