예제 #1
0
        public ReturnedSaveFuncInfo Remove()
        {
            var user = AsyncContext.Run(() => PrdFeatureBussines.GetAsync(Guid));
            var res  = new ReturnedSaveFuncInfo();

            res.AddReturnedValue(AsyncContext.Run(() => user.RemoveAsync()));
            return(res);
        }
예제 #2
0
 public static WebPrdFeature Get(Guid guid)
 {
     try
     {
         var prd     = PrdFeatureBussines.Get(guid);
         var mapList = Mappings.Default.Map <WebPrdFeature>(prd);
         return(mapList);
     }
     catch (Exception ex)
     {
         WebErrorLog.ErrorInstence.StartErrorLog(ex);
         return(null);
     }
 }