public ExpertSampleRepository() { Expert adamC = new Expert() { ExpertId = 1, Code = "ADAMC", FirstName = "Adam", LastName = "Cogan", DefaultRate = 265, Description = "Adam Cogan is the Chief Architect at SSW, a Microsoft Certified Gold Partner specializing in custom .NET, SharePoint and CRM solutions (with a splash of Business Intelligence). At SSW, Adam has been developing custom solutions for businesses across a range of industries such as Government, engineering, banking, insurance and manufacturing since 1990 for clients such as Microsoft, Worley Parsons and Aurecon.", ImageUrl = "AdamCogan.png" }; experts.Add(adamC); Expert troyH = new Expert() { ExpertId = 1, Code = "TROYH", FirstName = "Troy", LastName = "Hunt", DefaultRate = 500, Description = "Troy is a software architect and Microsoft Most Valued Professional (MVP) focusing on security concepts and process improvement in software delivery within a large enterprise environment.  His specialties include C# ASP.Net, SQL Server, SOA, SharePoint, Security and Continuous Integration", ImageUrl = "TroyHunt.png" }; experts.Add(troyH); Expert adamS = new Expert() { ExpertId = 1, Code = "ADAMS", FirstName = "Adam", LastName = "Stephensen", DefaultRate = 265, Description = "Adam Stephensen is a Solution Architect at SSW with a decade of experience performing needs analysis, designing and building scalable, database-driven, distributed enterprise solutions incorporating web and windows interfaces.", ImageUrl = "AdamStephensen.png" }; experts.Add(adamS); Expert davidB = new Expert() { ExpertId = 1, Code = "DAVIDB", FirstName = "David", LastName = "Burela", DefaultRate = 265, Description = "David is a Solution Architect & Microsoft Azure MVP who runs our Melbourne SSW Office. He has been working with.Net for 10 + years, with 7 years experience as a consultant.In that time he has worked with the entire.Net stack but focus most of his attention on cloud development & smart client technologies (Desktop & native mobile). David is heavily involved in the developer community and regularly speaks at conferences, and also helps organise community events.", ImageUrl = "DavidBurela.png" }; experts.Add(davidB); }
public void Delete(Expert o) { throw new NotImplementedException(); }
public void Insert(Expert o) { throw new NotImplementedException(); }
public ExpertModel LoadModel(Expert p) { ExpertModel pm = new ExpertModel(); pm.Id = p.ExpertId; pm.Code = p.Code; pm.FirstName = p.FirstName; pm.LastName = p.LastName; pm.Description = p.Description; pm.HourlyRate = p.DefaultRate; pm.HourlyRateFormatted = p.DefaultRate.ToString("$#.#"); pm.ImageUrl = p.ImageUrl; return pm; }