public bool CheckExistLocation(string location) { bool result = false; try { using (MaterialBLL materialBll = new MaterialBLL()) { result = materialBll.CheckExistLocation(location); } } catch (Exception ex) { result = false; } return(result); }