public Stream Login(string username, string password) { ILoginBusinessService businessService = (ILoginBusinessService)BusinessFactory.Create("Find.Common.Resources.UserLogin"); OperationResult result = businessService.FindByUsernameAndPassword(username, password); return(result.ToJsonStream()); }
public LoginController(ILoginBusinessService loginService) { _loginService = loginService; }