public ReturnedSaveFuncInfo Remove() { var user = AsyncContext.Run(() => ProductPicturesBussines.GetAsync(Guid)); var res = new ReturnedSaveFuncInfo(); res.AddReturnedValue(AsyncContext.Run(() => user.RemoveAsync())); return(res); }
public static WebProductPictures Get(Guid guid) { try { var prd = AsyncContext.Run(() => ProductPicturesBussines.GetAsync(guid)); var mapList = Mappings.Default.Map <WebProductPictures>(prd); return(mapList); } catch (Exception ex) { WebErrorLog.ErrorInstence.StartErrorLog(ex); return(null); } }