public BaseServiceController(IUnitOfWork ufo, ERunType type = ERunType.Debug)
        {
            switch (type)
            {
            case ERunType.Debug:
                this.connectionString = System.Configuration.ConfigurationManager.ConnectionStrings["DefaultConnection"].ConnectionString;
                break;

            case ERunType.Test:
                new AutomapperConfig().Register();
                break;

            case ERunType.Release:
                break;

            default:
                throw new ArgumentException();
            }
            this.errorService = new ErrorDbService(ufo);
        }
 public BaseServiceController()
 {
     this.errorService = new ErrorDbService(new UnitOfWork(new SchoolContext(), ERunType.Debug));
 }