Exemple #1
0
 public object Search(string query)
 {
     try
     {
         return(AcctIntegrationMdl.Search(query));
     }
     catch (Exception e)
     {
         return(new { state = false, message = "Server Error", exception = e });
     }
 }
Exemple #2
0
 // GET: api/City/5
 public dynamic Get(int id)
 {
     try
     {
         return(AcctIntegrationMdl.GetAcctsIntegration(id));
     }
     catch (Exception e)
     {
         return(new { state = false, message = "Server Error", exception = e });
     }
 }
Exemple #3
0
 // GET: api/City
 public object Get()
 {
     try
     {
         return(AcctIntegrationMdl.GetAcctsIntegrations());
     }
     catch (Exception e)
     {
         return(new { state = false, message = "Server Error", exception = e });
     }
 }
Exemple #4
0
        public object Save([FromBody] List <MS_ACCTS_INTEGRATION> acctIntegration)
        {
            try
            {
                foreach (var accInt in acctIntegration)
                {
                    AcctIntegrationMdl.SaveAcctIntegration(accInt);
                }

                return(new { state = true, message = "Transaction Successfully Saved" });
            }
            catch (Exception e)
            {
                return(new { state = false, message = "Server Error", exception = e });
            }
        }