public void AddToCart(List <Cart> cart) { try { MOSBusinesslayer.MOSBusinesslayer bll = new MOSBusinesslayer.MOSBusinesslayer(); bll.AddToCart(cart); } catch (Exception ex) { throw new MOSException(ex.Message); } }
public void DeleteFromCart(int id) { try { MOSBusinesslayer.MOSBusinesslayer bll = new MOSBusinesslayer.MOSBusinesslayer(); bll.DeleteFromCart(id); } catch (Exception ex) { throw new MOSException(ex.Message); } }
public Product GetProductDetailsById(int id) { try { MOSBusinesslayer.MOSBusinesslayer bll = new MOSBusinesslayer.MOSBusinesslayer(); var product = bll.GetProductDetailsById(id); return(product); } catch (Exception ex) { throw new MOSException(ex.Message); } }
public List <Category> GetAllCategories() { try { MOSBusinesslayer.MOSBusinesslayer bll = new MOSBusinesslayer.MOSBusinesslayer(); var lstcategories = bll.GetAllCategories(); return(lstcategories); } catch (Exception ex) { throw new MOSException(ex.Message); } }
public List <Product> SearchProductByName(string name) { try { MOSBusinesslayer.MOSBusinesslayer bll = new MOSBusinesslayer.MOSBusinesslayer(); var lstproducts = bll.SearchProductByName(name); return(lstproducts); } catch (Exception ex) { throw new MOSException(ex.Message); } }