public void login(string email, string pass, Action <TypeResult <LoginResultDto> > cb = null) { UserLoginFormDto dto = new UserLoginFormDto(); dto.email = email; dto.password = pass; publicRest.loginForGeneral(dto, _r => { onResult(_r); cb?.Invoke(_r); }); }
public void loginForGeneral(UserLoginFormDto dto, Action <TypeResult <LoginResultDto> > b) { string urlTemp = "v1/public/login?type=REST_API"; restApi.postJson <LoginResultDto>(urlTemp, dto, b); }