<commit_before>﻿namespace VotingSystem.Web.Areas.User.ViewModels
{
    using System;
    using System.Collections.Generic;
    using System.Web.Mvc;

    using VotingSystem.Models;
    using VotingSystem.Web.Infrastructure.Mapping;

    using AutoMapper;

    public class UserPollsViewModel : IMapFrom<Poll>, IHaveCustomMappings
    {
        [HiddenInput(DisplayValue = false)]
        public int Id { get; set; }

        public string Title { get; set; }

        public string Description { get; set; }

        [HiddenInput(DisplayValue = false)]
        public string Author { get; set; }

        public bool IsPublic { get; set; }

        public DateTime StartDate { get; set; }

        public DateTime EndDate { get; set; }

        public string UserId { get; set; }


        public void CreateMappings(AutoMapper.IConfiguration configuration)
        {
            configuration.CreateMap<Poll, UserPollsViewModel>()
                .ForMember(m => m.Author, opt => opt.MapFrom(a => a.User.UserName));
        }
    }
}<commit_msg>Hide UserId by Editing in KendoGrid PopUp<commit_after>﻿namespace VotingSystem.Web.Areas.User.ViewModels
{
    using System;
    using System.Collections.Generic;
    using System.Web.Mvc;

    using VotingSystem.Models;
    using VotingSystem.Web.Infrastructure.Mapping;

    using AutoMapper;

    public class UserPollsViewModel : IMapFrom<Poll>, IHaveCustomMappings
    {
        [HiddenInput(DisplayValue = false)]
        public int Id { get; set; }

        public string Title { get; set; }

        public string Description { get; set; }

        [HiddenInput(DisplayValue = false)]
        public string Author { get; set; }

        public bool IsPublic { get; set; }

        public DateTime StartDate { get; set; }

        public DateTime EndDate { get; set; }

        [HiddenInput(DisplayValue = false)]
        public string UserId { get; set; }


        public void CreateMappings(AutoMapper.IConfiguration configuration)
        {
            configuration.CreateMap<Poll, UserPollsViewModel>()
                .ForMember(m => m.Author, opt => opt.MapFrom(a => a.User.UserName));
        }
    }
}
{'fraction_non_alphanumeric': 0.09473197781885398, 'fraction_numerical': 0.0, 'mean_word_length': 2.5032362459546924, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5215385', 'n_tokens_mistral': 625, 'n_tokens_neox': 595, 'n_words': 156}