public DataBases.Wrapping ConvertToDBWrapping(SharedDataTypes.Wrapping w) { return(new DataBases.Wrapping { ID_Wrapping = w.WrappingId, Name = w.Name, Price = w.Price, Image = w.Image, ModifyDate = DateTime.Now }); }
public bool InsertWrapping(SharedDataTypes.Wrapping w) { localDb.Wrapping.Add(converter.ConvertToDBWrapping(w)); return(localDb.SaveChanges() == 1); }