AspNetCore.Docs/aspnet/mvc/mvc3/samples/sample2.cs

11 lines
226 B
C#

public class UsersController
{
public bool UserNameAvailable(string username)
{
if(MyRepository.UserNameExists(username))
{
return "false";
}
return "true";
}
}