public async Task <IEnumerable <OversShort> > SearchOversShort(List <string> lst, List <string> includeLst = null)
 {
     using (var ctx = new OversShortService())
     {
         return(await ctx.GetOversShortsByExpressionLst(lst, includeLst).ConfigureAwait(false));
     }
 }
Beispiel #2
0
 public async Task SaveOversShort(OversShort i)
 {
     if (i == null)
     {
         return;
     }
     using (var ctx = new OversShortService())
     {
         await ctx.UpdateOversShort(i).ConfigureAwait(false);
     }
 }
        internal async Task RemoveSelectedOverShorts(IEnumerable <OversShortEX> lst)
        {
            StatusModel.StartStatusUpdate("Removing OversShort", lst.Count());
            using (var ctx = new OversShortService())
            {
                foreach (var item in lst.ToList())
                {
                    await ctx.DeleteOversShort(item.OversShortsId.ToString()).ConfigureAwait(false);

                    StatusModel.StatusUpdate();
                }
            }
            StatusModel.StopStatusUpdate();
        }