public HttpResponseMessage GetPaymentMode()
 {
     try
     {
         var data = paymentmoderepository.GetAllPaymentModes();
         return(Request.CreateResponse(HttpStatusCode.OK, new { success = true, result = data }));
     }
     catch (Exception e)
     {
         return(Request.CreateResponse(HttpStatusCode.OK, new { success = false, message = e.Message }));
     }
 }
Ejemplo n.º 2
0
 public List <PaymentModes> GetAllPaymentModes()
 {
     return(_pmRepository.GetAllPaymentModes());
 }