//Search Entities public async Task <IEnumerable <OverShortDetailAllocation> > SearchOverShortDetailAllocation(List <string> lst, List <string> includeLst = null) { using (var ctx = new OverShortDetailAllocationService()) { return(await ctx.GetOverShortDetailAllocationsByExpressionLst(lst, includeLst).ConfigureAwait(false)); } }
private async Task DeleteOverShortAllocation(OverShortDetailAllocation osa) { using (var ctx = new OverShortDetailAllocationService()) { await ctx.DeleteOverShortDetailAllocation(osa.OverShortAllocationId.ToString()).ConfigureAwait(false); } }
private async Task CreateOverShortDetailAllocation(OverShortDetailAllocation osa) { using (var ctx = new OverShortDetailAllocationService()) { await ctx.CreateOverShortDetailAllocation(osa).ConfigureAwait(false); } }
public async Task SaveOverShortDetailAllocation(OverShortDetailAllocation i) { if (i == null) { return; } using (var ctx = new OverShortDetailAllocationService()) { await ctx.UpdateOverShortDetailAllocation(i).ConfigureAwait(false); } }