public async Task <IEnumerable <Document_Type> > SearchDocument_Type(List <string> lst, List <string> includeLst = null)
 {
     using (var ctx = new Document_TypeService())
     {
         return(await ctx.GetDocument_TypeByExpressionLst(lst, includeLst).ConfigureAwait(false));
     }
 }
 private static async Task <Document_Type> GetDocumentType(string dfp)
 {
     try
     {
         Document_Type dt;
         using (var ctx = new Document_TypeService())
         {
             if (dfp == "Duty Free")
             {
                 dt =
                     (await
                      ctx.GetDocument_TypeByExpression(
                          "Type_of_declaration + Declaration_gen_procedure_code == \"EX9\"")
                      .ConfigureAwait(false)).FirstOrDefault();
             }
             else
             {
                 dt =
                     (await
                      ctx.GetDocument_TypeByExpression(
                          "Type_of_declaration + Declaration_gen_procedure_code == \"IM4\"")
                      .ConfigureAwait(false)).FirstOrDefault();
             }
         }
         return(dt);
     }
     catch (Exception)
     {
         Debugger.Break();
         throw;
     }
 }
 public async Task SaveDocument_Type(Document_Type i)
 {
     if (i == null)
     {
         return;
     }
     using (var ctx = new Document_TypeService())
     {
         await ctx.UpdateDocument_Type(i).ConfigureAwait(false);
     }
 }