Пример #1
0
        public bool IsUserNameExist(string Name)
        {
            var isExist = false;
            var user    = _medicineRepository.GetByName(Name);

            if (user != null)
            {
                isExist = true;
            }
            return(isExist);
        }
Пример #2
0
 private void btnSearch_Click(object sender, EventArgs e)
 {
     bindingSource1.DataSource = reposioryMedicine.GetByName(txtTenThuoc.Text.Trim());
 }