Example #1
0
        public HttpResponseMessage GetCountries()
        {
            try
            {
                //SqlParameter[] parameters = { new SqlParameter("@CategoryId", CategoryId) };

                var CategoryDrop = _categoryManagementService.GetCountriesMasters(StoredProceduresList.GetCountiesList,
                                                                                  System.Data.CommandType.StoredProcedure, null);
                return
                    (Request.CreateResponse <ApiResponse <List <CountryMaster> > >(HttpStatusCode.OK, CategoryDrop));
            }
            catch (Exception ex)
            {
                return
                    (Request.CreateResponse <System.Exception>(HttpStatusCode.InternalServerError, ex));
            }
        }