public IActionResult Update(ParkHistory parkHistory) { var result = _parkHistoryService.Update(parkHistory); if (result.Success) { return(Ok(result)); } return(BadRequest(result)); }
public IResult Update(ParkHistory parkHistory) { _parkHistoryDal.Update(parkHistory); return(new SuccessResult(Messages.parkHistoryUpdate)); }
public IResult Add(ParkHistory parkHistorydal) { _parkHistoryDal.Add(parkHistorydal); return(new SuccessResult(Messages.ParkHistoryAdded)); }