public void AddNewProject(Project project)
 {
     _officeUnitOfWork.ProjectRepository.Add(new Project
     {
         Name        = project.Name,
         ImageUrl    = project.ImageUrl,
         Description = project.Description,
         DemoAccount = project.DemoAccount,
         CompanyId   = project.CompanyId
     });
     _officeUnitOfWork.Save();
 }
 public void AddNewCompanyService(CompanyService companyService)
 {
     _officeUnitOfWork.CompanyServiceRepository.Add(new CompanyService
     {
         Name        = companyService.Name,
         ImageUrl    = companyService.ImageUrl,
         Description = companyService.Description,
         PricingRate = companyService.PricingRate,
         CompanyId   = companyService.CompanyId
     });
     _officeUnitOfWork.Save();
 }
        public void AddAreaOfOperations(IList <AreaOfOperation> areaOfOperations)
        {
            var existAreaOfOperations = _officeUnitOfWork.AreaOfOperationsRepository.GetAllAreaOfOperations();

            foreach (var item in areaOfOperations)
            {
                if (!existAreaOfOperations.Any(x => x.Name == item.Name && x.CompanyId.Equals(item.CompanyId)))
                {
                    _officeUnitOfWork.AreaOfOperationsRepository.Add(item);
                }
                else
                {
                    continue;
                }
            }
            _officeUnitOfWork.Save();
        }