public Common.DataMembers.Output.Usuario ChangePassword(Common.DataMembers.Input.ChangePassword usuario) { var usr = _usuarioInfrastructure.Get(usuario.UserName); if (usr.Password == usuario.OldPassword) { return(_usuarioInfrastructure.ChangePassword(usuario.UserName, usuario.NewPassword)); } return(null); }
public ICollection <Common.DataMembers.Output.Articulo> GetByUserInteresado(string user) { var usuario = _usuarioInfrastructure.Get(user); return(_articuloInfrastructure.GetByUserInteresado(usuario.Id)); }
public bool UsuarioRepetido(Usuario usuario, string userName) { var item = _usuarioInfrastructure.Get(userName); return(item != null); }