'How to find string's left , right, middle side in C#
I want to divide my NameSurname variable to take name and surname seperately. How can I use left, right methods for this?
public ActionResult SearchPerson(string NameSurname)
{
VisitService srv = new VisitService(user);
List<PersonListViewModel> result = null;
var filters = SearchFilterHelper.EmptySearchFilter();
if(!NameSurname.IsBlank())
{
filters.AddLike("Person.Name", NameSurname);
result= srv.GetPersonList(filters);
}
return PartialView(result);
}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|