Example #1
0
        public static Cheese CheeseDAO_Cheese(CheeseDAO c)
        {
            Cheese cheese = new Cheese();

            cheese.CheeseID = c.ID;
            cheese.Name     = c.Name;
            return(cheese);
        }
Example #2
0
        public static CheeseDAO Cheese_CheeseDAO(Cheese c)
        {
            CheeseDAO cheese = new CheeseDAO();

            cheese.ID   = c.CheeseID;
            cheese.Name = c.Name;
            return(cheese);
        }
        public static Cheese MapToCheese(CheeseDAO cheese)
        {
            var c = new Cheese();

            c.CheeseID   = cheese.Id;
            c.CheeseType = cheese.Name;
            c.Active     = cheese.Active;

            return(c);
        }
        public static CheeseDAO MapToCheeseDAO(Cheese cheese)
        {
            var c = new CheeseDAO();

            c.Id     = cheese.CheeseID;
            c.Name   = cheese.CheeseType;
            c.Active = cheese.Active;

            return(c);
        }
Example #5
0
        public static Cheese MapToCheese(CheeseDAO cheese)
        {
            var c = new Cheese();

            c.CheeseId   = cheese.Id;
            c.CheeseName = cheese.Name;
            c.Price      = cheese.Price;

            return(c);
        }
Example #6
0
        public static CheeseDAO MapToCheeseDAO(Cheese cheese)
        {
            var c = new CheeseDAO();

            c.Id    = cheese.CheeseId;
            c.Name  = cheese.CheeseName;
            c.Price = cheese.Price;

            return(c);
        }
        public static CheeseDTO MapToDTO(CheeseDAO cheese)
        {
            var c = new CheeseDTO();

            c.Id     = cheese.Id;
            c.Name   = cheese.Name;
            c.Active = cheese.Active;

            return(c);
        }
 public bool InsertCheese(CheeseDAO cheese)
 {
     return(data.InsertCheese(CheeseMapper.MapToCheese(cheese)));
 }
 public bool ChangeCheese(CheeseDAO cheese)
 {
     return(data.ChangeCheese(CheeseMapper.MapToCheese(cheese)));
 }
 public bool DeleteCheese(CheeseDAO cheese)
 {
     return(data.DeleteCheese(CheeseMapper.MapToCheese(cheese)));
 }