public static void BonificationCalc() { BonificationManager bm = new BonificationManager(); Designers Diego = new Designers("833.222.048-39"); Diego.Name = "Diego arruda"; bm.Registry(Diego); Directors maria = new Directors("159.753.398-04"); maria.Name = "Maria Ana Soares"; bm.Registry(maria); AccountManagers michael = new AccountManagers("326.985.628-89"); michael.Name = "Michael Hoffman"; bm.Registry(michael); Auxiliar mirta = new Auxiliar("325.541.654-99"); mirta.Name = "Mirta Roberta silva"; bm.Registry(mirta); Console.WriteLine("Total bonifications " + bm.GetBonifications()); }
public bool CompliesWithFilter(Chair chair) { if (Designers.Any()) { foreach (var designer in Designers) { if (designer.FirstName.ToLower().Equals(chair.Designer.FirstName.ToLower())) { return(true); } } } if (Colors.Any()) { foreach (var color in Colors) { foreach (var chairColor in chair.ChairColors) { if (chairColor.Color.Name.ToLower().Equals(color.Name.ToLower())) { return(true); } } } } if (Tags.Any()) { foreach (var tag in Tags) { foreach (var chairTag in chair.ChairTags) { if (chairTag.Tag.Name.ToLower().Equals(tag.Name.ToLower())) { return(true); } } } } if (Makers.Any()) { foreach (var maker in Makers) { if (maker.Name.ToLower().Equals(chair.Maker.Name.ToLower())) { return(true); } } } return(false); }
public void getAllDesignersFromDB() { Designers des = new Designers(); JavaScriptSerializer serializer = new JavaScriptSerializer(); List <Dictionary <string, object> > rows = new List <Dictionary <string, object> >(); rows = des.getAllDesignersFromDB(); Context.Response.Clear(); Context.Response.ContentType = "application/json"; Context.Response.Write(serializer.Serialize(rows)); Context.Response.Flush(); Context.Response.End(); }
public void EmptyDataBase() { Walls.RemoveRange(Walls); Windows.RemoveRange(Windows); WallBeams.RemoveRange(WallBeams); Doors.RemoveRange(Doors); DecorativeColumns.RemoveRange(DecorativeColumns); Architects.RemoveRange(Architects); Administrators.RemoveRange(Administrators); Clients.RemoveRange(Clients); Designers.RemoveRange(Designers); SaveChanges(); }
public override void PerformOperation() { Designers m = new Designers(); m.Designing(); }
public void IncludeDesigner(Designer designer) => Designers.Add(new ComicDesigner() { Designer = designer });