public static CompanyModel toModel(Company entity)
        {
            CompanyModel model = new CompanyModel();

            if (entity != null)
            {
                model.token       = entity.token;
                model.CompanyName = entity.CompanyName;
                model.Departments = entity.Departments.Select(a => DepartmentMapper.toModel(a)).ToList();
            }
            return(model);
        }
        public static EmployeeModel toModel(Employee entity)
        {
            EmployeeModel model = new EmployeeModel();

            if (entity != null)
            {
                model.token          = entity.token;
                model.FirstName      = entity.FirstName;
                model.LastName       = entity.LastName;
                model.JobTitle       = entity.JobTitle;
                model.MailingAddress = entity.MailingAddress;
                model.company        = CompanyMapper.toModel(entity.company);
                model.department     = DepartmentMapper.toModel(entity.department);
            }
            return(model);
        }