public JsonResult EditChargeBackType(ChargeBackType chargeBackType) { if (chargeBackType != null) { _chargeBackTypeService.Update(chargeBackType); return Json(true); } return Json(false); }
public JsonResult AddChargeBackType(ChargeBackType chargeBackType) { if (chargeBackType != null) { chargeBackType.Id = Guid.NewGuid(); _chargeBackTypeService.Add(chargeBackType); return Json(true); } return Json(false); }
public JsonResult DeleteChargeBackType(ChargeBackType chargeBackType) { try { if (chargeBackType != null) { _chargeBackTypeService.Remove(chargeBackType.Id); return Json(true); } return Json(false); } catch (Exception ex) { return Json(false); } }
public ChargeBackType Update(ChargeBackType chargeBackType) { chargeBackTypeRepository.Update(chargeBackType); return chargeBackType; }
public ChargeBackType Add(ChargeBackType chargeBackType) { chargeBackTypeRepository.Add(chargeBackType); return chargeBackType; }