Esempio n. 1
0
 /// <summary>
 /// Persist changes to the product object
 /// </summary>
 /// <param name="Productid"></param>
 /// <param name="auditUserId"></param>
 /// <param name="auditWorkstation"></param>
 /// <returns></returns>
 public BaseResponse DeleteProduct(int Productid, long auditUserId, string auditWorkstation)
 {
     try
     {
         _cardManService.DeleteProduct(Productid, auditUserId, auditWorkstation);
         return(new BaseResponse(ResponseType.SUCCESSFUL,
                                 "",
                                 ""));
     }
     catch (Exception ex)
     {
         log.Error(ex);
         return(new BaseResponse(ResponseType.ERROR,
                                 "Error processing request, please try again.",
                                 log.IsDebugEnabled || log.IsTraceEnabled ? ex.Message : ""));
     }
 }