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);
        }
示例#2
0
 public HomeController(IExpertise expertise)
 {
     unitOfWork         = new UnitOfWork();
     expertiseOperator1 = expertise;
 }