public object Lov()
 {
     try
     {
         return(AccountOriginMdl.GetAcctDocOriginLov());
     }
     catch (Exception e)
     {
         return(new { state = false, message = "Server Error whiles Fetching Account Origins LOV", exception = e });
     }
 }
 // GET: api/AccountOrigin/5
 public object Get(string id)
 {
     try
     {
         return(AccountOriginMdl.GetAcctDocOrigin(id));
     }
     catch (Exception e)
     {
         return(e);
     }
 }
 public object Search(string query)
 {
     try
     {
         return(AccountOriginMdl.Search(query));
     }
     catch (Exception e)
     {
         return(new { state = false, message = "Server Error whiles Searching Account Origins", exception = e });
     }
 }
 // GET: api/AccountOrigin
 public object Get()
 {
     try
     {
         return(AccountOriginMdl.GetAcctDocOrigins());
     }
     catch (Exception e)
     {
         return(e);
     }
 }
 public object Check(string code)
 {
     try
     {
         var result = AccountOriginMdl.GetAcctDocOrigin(code);
         return(new { state = true, name = result.DOC_ORIGN_NAME });
     }
     catch (Exception e)
     {
         return(new { state = false, exception = e });
     }
 }