public JsonResponse <List <ProductMasterDTO> > GetProductsByCategory(string code) { JsonResponse <List <ProductMasterDTO> > response = new JsonResponse <List <ProductMasterDTO> >(); response.SingleResult = ProductBusinessInstance.GetAllProductsByCategory(code); //.Where(x => x.cemailaddress == email && x.cpassword == password).FirstOrDefault(); response.IsSuccess = true; return(response); }
public JsonResponse <List <CompleteInteriorListingDTO> > GetInteriorMappings(int id = 1) { JsonResponse <List <CompleteInteriorListingDTO> > response = new JsonResponse <List <CompleteInteriorListingDTO> >(); response.SingleResult = ProductBusinessInstance.GetInteriorCategoryMapping(id); response.IsSuccess = true; return(response); }
public JsonResponse <List <CategoryMasterDTO> > GetAllCategories() { JsonResponse <List <CategoryMasterDTO> > response = new JsonResponse <List <CategoryMasterDTO> >(); response.SingleResult = ProductBusinessInstance.GetAllCategories(); response.IsSuccess = true; return(response); }
public JsonResponse <ProductHelpDTO> GetProductHelpByCatgID(string code) { JsonResponse <ProductHelpDTO> response = new JsonResponse <ProductHelpDTO>(); response.SingleResult = ProductBusinessInstance.GetCategoryHelp(code); response.IsSuccess = true; return(response); }
public JsonResponse <ProductHelpDTO> GetProductHelpByID(string code, int?id = 0) { JsonResponse <ProductHelpDTO> response = new JsonResponse <ProductHelpDTO>(); try { response.SingleResult = ProductBusinessInstance.GetProductHelp((int)id, code); response.IsSuccess = true; response.StatusCode = "200"; } catch (Exception ex) { response.IsSuccess = false; response.StatusCode = "500"; response.Message = ex.Message; } return(response); }