Exemple #1
0
        public HttpResponseMessage GetServiceSubCategories(SubCategoryListRequest slrs)
        {
            try
            {
                SqlParameter[] parameters = { new SqlParameter("@CategoryId", slrs.CategoryId) };

                var CategoryDrop = _categoryManagementService.GetServiceSubCategories(StoredProceduresList.GetServiceSubCategory,
                                                                                      System.Data.CommandType.StoredProcedure, parameters);
                return
                    (Request.CreateResponse <ApiResponse <List <ServiceSubCategory> > >(HttpStatusCode.OK, CategoryDrop));
            }
            catch (Exception ex)
            {
                return
                    (Request.CreateResponse <System.Exception>(HttpStatusCode.InternalServerError, ex));
            }
        }