public static ExpertiseContext ConvertToExpertiseContext(this IExpertise expertise) { ExpertiseContext expertiseContext = new ExpertiseContext(); if (null == expertise) { return(expertiseContext); } expertiseContext.ExpertiseName = expertise.ExpertiseName; expertiseContext.Id = expertise.Id.ToString(); return(expertiseContext); }
public HomeController(IExpertise expertise) { unitOfWork = new UnitOfWork(); expertiseOperator1 = expertise; }