Exemplo n.º 1
0
 public JsonResult EditChargeBackType(ChargeBackType chargeBackType)
 {
     if (chargeBackType != null)
     {
         _chargeBackTypeService.Update(chargeBackType);
         return Json(true);
     }
     return Json(false);
 }
Exemplo n.º 2
0
 public JsonResult AddChargeBackType(ChargeBackType chargeBackType)
 {
     if (chargeBackType != null)
     {
         chargeBackType.Id = Guid.NewGuid();
         _chargeBackTypeService.Add(chargeBackType);
         return Json(true);
     }
     return Json(false);
 }
Exemplo n.º 3
0
 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);
     }
 }
Exemplo n.º 4
0
 public ChargeBackType Update(ChargeBackType chargeBackType)
 {
     chargeBackTypeRepository.Update(chargeBackType);
     return chargeBackType;
 }
Exemplo n.º 5
0
 public ChargeBackType Add(ChargeBackType chargeBackType)
 {
     chargeBackTypeRepository.Add(chargeBackType);
     return chargeBackType;
 }