public void EditTopping(Domain.Topping topping)
 {
     if (_db.Topping.Find(topping.Toppingid) != null)
     {
         _db.Topping.Update(Mapper.Map(topping));
     }
 }
Beispiel #2
0
        public static Data.Entities.Topping Map(Domain.Topping dmTopping)
        {
            Data.Entities.Topping deTopping = new Entities.Topping();
            deTopping.Toppingid = dmTopping.Toppingid;
            deTopping.Tpizzaid  = dmTopping.Tpizzaid;
            deTopping.Topping1  = dmTopping.Topping1;

            return(deTopping);
        }
Beispiel #3
0
 internal static Domain.Models.Topping Map(Domain.Topping topping)
 {
     if (topping == null)
     {
         return(null);
     }
     return(new Domain.Models.Topping()
     {
         Name = topping.Name,
         Id = topping.Id
     });
 }
 public void AddTopping(Domain.Topping topping)
 {
     _db.Topping.Add(Mapper.Map(topping));
 }