public Stream ShowEmpImage(int userId)
        {
            try
            {

                UserEntity newEntity = new UserEntity();
                UserService newService = new UserService();

                newEntity = newService.GetOne(userId);

                return new MemoryStream(newEntity.Picture);
            }
            catch
            {
                return null;
            }
            finally
            {

            }
        }
        private void PopulateFields(int id)
        {
            newEntity = new InvestorEntity();
            newEntity = newService.GetOne(id);

            UserEntity usrEnt = new UserEntity();
            UserService usrSrv = new UserService();
            usrEnt = usrSrv.GetOne(newEntity.UserId);

            txtAmount.Text = newEntity.Amount.ToString();
            txtNotes.Text = newEntity.Notes;
            ddlUser.SelectedValue = newEntity.UserId.ToString();
        }