Пример #1
0
        public Company SignInCompany(string login, string password)
        {
            Company company = CompanyRepository.GetCompany(login);

            if (company != null && CompanyRepository.CheckPassword(company, password))
            {
                return(company);
            }
            else
            {
                return(null);
            }
        }