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);
     }
 }
示例#4
0
 public ChargeBackType Update(ChargeBackType chargeBackType)
 {
     chargeBackTypeRepository.Update(chargeBackType);
     return chargeBackType;
 }
示例#5
0
 public ChargeBackType Add(ChargeBackType chargeBackType)
 {
     chargeBackTypeRepository.Add(chargeBackType);
     return chargeBackType;
 }