コード例 #1
0
 public static object UpdateProduct(SessionInfo sessioninfo, MA_PRODUCT record)
 {
     try
     {
         LookupBusiness _lookupbusiness = new LookupBusiness();
         record.ISACTIVE = record.ISACTIVE == null || !record.ISACTIVE.Value ? false : true;
         record.LABEL    = record.LABEL;
         var updated = _lookupbusiness.UpdateProduct(sessioninfo, record);
         return(new { Result = "OK" });
     }
     catch (Exception ex)
     {
         return(new { Result = "ERROR", Message = ex.Message });
     }
 }
コード例 #2
0
ファイル: LookupUIP.cs プロジェクト: Theeranit/DealMarker
 public static object UpdateProduct(SessionInfo sessioninfo, MA_PRODUCT record)
 {
     try
     {
         LookupBusiness _lookupbusiness = new LookupBusiness();
         record.ISACTIVE = record.ISACTIVE == null || !record.ISACTIVE.Value ? false : true;
         record.LABEL = record.LABEL;
         var updated = _lookupbusiness.UpdateProduct(sessioninfo, record);
         return new { Result = "OK" };
     }
     catch (Exception ex)
     {
         return new { Result = "ERROR", Message = ex.Message };
     }
 }