internal Local_Database.CustomStyle ConvertToDBCustomStyle(SharedDataTypes.CustomStyle cs) { return(new Local_Database.CustomStyle { ID_CustomStyle = cs.CustomStyleId, Name = cs.Name, Description = cs.Description, ModifyDate = DateTime.Now }); }
public bool InsertCustomStyle(SharedDataTypes.CustomStyle cs) { localDb.CustomStyle.Add(converter.ConvertToDBCustomStyle(cs)); return(localDb.SaveChanges() == 1); }