public IActionResult Update(HomePageCar homePageCar) { var result = _homePageCarService.Update(homePageCar); if (result.Success) { return(Ok(result)); } return(BadRequest(result)); }
public IResult Update(HomePageCar entity) { _homePageCarDal.Update(entity); return(new SuccessResult(Messages.UpdateSuccess)); }
public IResult Add(HomePageCar entity) { entity.AddedDate = DateTime.Now; _homePageCarDal.Add(entity); return(new SuccessResult(Messages.AddedSuccess)); }