public SupportTerritory FindSupportTerritoryByName(string supportTerritoryName) { SupportTerritory f1 = _context.SupportTerritories.Where(x => x.SupportTerritoryName.ToUpper().StartsWith(supportTerritoryName.ToUpper())).FirstOrDefault(); SupportTerritory f2 = (from cf in _context.SupportTerritories where cf.SupportTerritoryName.ToUpper().StartsWith(supportTerritoryName.ToUpper()) select cf).FirstOrDefault(); return(f2); }
public void AddSupportTerritory(SupportTerritory st) { _context.SupportTerritories.Add(st); }