Example #1
0
        public static object GetOPICSCountryByLabel(string label)
        {
            OpicsBusiness opicsBusiness = new OpicsBusiness();
            try
            {
                List<COUNModel> country = opicsBusiness.GetOPICSCountryByLabel(label);

                //Return result to jTable
                return new { Result = "OK", Records = country, TotalRecordCount = country.Count };
            }
            catch (BusinessWorkflowsException bex)
            {
                return new { Result = "ERROR", Message = bex.Message };
            }
            catch (Exception ex)
            {
                return new { Result = "ERROR", Message = ex.Message };
            }
        }