public IActionResult ResetPasswordPartial(EntityId <string> idModel = null) { UserResetPasswordInput input = null; if (idModel == null) { input = new UserResetPasswordInput(); } else { input = userService.GetResetPasswordInputById(idModel); } return(PartialView(input)); }
public UserResetPasswordInput GetResetPasswordInputById(EntityId <string> entityId) { WebCoreUser entity = userRepository.GetById(entityId.Id); UserResetPasswordInput updateInput = new UserResetPasswordInput(); if (entity == null) { return(null); } updateInput = mapper.Map <UserResetPasswordInput>(entity); return(updateInput); }