Ejemplo n.º 1
0
        public async Task <Filer> Login(string emailAddress, string password)
        {
            Filer      retFiler     = null;
            FilerLogin filerRequest = new FilerLogin()
            {
                UserName = emailAddress,
                Password = password
            };

            var filerResponse = await _userServiceWrapper.Login(filerRequest);

            if (filerResponse != null && !string.IsNullOrEmpty(filerResponse.EFMUserId))
            {
                retFiler = await _filerDal.GetAndUpdateFiler(filerResponse.UserName, filerResponse.EFMUserId,
                                                             filerResponse.Password) ?? new Filer
                {
                    EmailAddress = emailAddress,
                    Password     = password
                };
            }

            return(retFiler);
        }
Ejemplo n.º 2
0
 public async Task <FilerLogin> Login(FilerLogin request)
 {
     return(await _apiClient.PostAsync <FilerLogin>(RequestUrl.login, request));
 }