public ExecuteResult <PromotionInfoResponse> DestroyPromotion(DestroyPromotionRequest request) { if (request == null) { return(new ExecuteResult <PromotionInfoResponse>(null) { StatusCode = StatusCode.ClientError, Message = "参数错误" }); } var entity = _promotionRepository.GetItem(request.PromotionId); if (entity == null) { return(new ExecuteResult <PromotionInfoResponse>(null) { StatusCode = StatusCode.ClientError, Message = "参数错误,没有找到指定promotion" }); } entity.UpdatedDate = DateTime.Now; entity.UpdatedUser = request.AuthUid; entity.Status = (int)DataStatus.Deleted; _promotionRepository.Delete(entity); return(new ExecuteResult <PromotionInfoResponse>(MappingManager.PromotionResponseMapping(entity))); }
public JsonResult Delete(PromotionModel.PromotionSaveModel model) { _promotionRepository.Delete(o => o.id_ == model.id_); _promotionRepository.ClearBannerCache(); _unitOfWork.Commit(); return(Json(new {}, JsonRequestBehavior.AllowGet)); }
public Promotion Delete(Promotion promotion) { return(_promotionRepository.Delete(promotion)); }
public void Delete(int id) { _promotionRepository.Delete(id); }
public bool Delete(int id) { return(_repo.Delete(id)); }
public Promotion Delete(Promotion entity) { return(_promotion.Delete(entity)); }
public bool Delete(int id) { return(_promotionRepository.Delete(id)); }
public async Task <ActionsResult> Delete(int id) { return(await promotionRepository.Delete(id)); }
public ResultMessage <Promotion> Delete(int id) { return(_promotionRepository.Delete(id)); }