public Mission getModel(IRepository repo)
        {
            var model = new Mission();

            Mapper.CreateMap<MissionView, Mission>();
            Mapper.Map<MissionView, Mission>(this, model);

            if (this.customerId != null) { model.customer = repo.getCustomer((int)this.customerId); }
            if (this.categoryIds.Length > 0) { model.categories = repo.getCategories(this.categoryIds).ToArray(); }

            return model;
        }
        public Employee getModel(IRepository repo)
        {
            var model = new Employee();

            Mapper.CreateMap<EmployeeView, Employee>();
            Mapper.Map<EmployeeView, Employee>(this, model);

            if (this.categoryIds.Length > 0) { model.categories = repo.getCategories(this.categoryIds).ToArray(); }

            return model;
        }