public MasterSourceViewModel MapToViewModel(MasterSource model)
        {
            MasterSourceViewModel viewModel = new MasterSourceViewModel();

            viewModel.Id                 = model.Id;
            viewModel._IsDeleted         = model._IsDeleted;
            viewModel.Active             = model.Active;
            viewModel._CreatedUtc        = model._CreatedUtc;
            viewModel._CreatedBy         = model._CreatedBy;
            viewModel._CreatedAgent      = model._CreatedAgent;
            viewModel._LastModifiedUtc   = model._LastModifiedUtc;
            viewModel._LastModifiedBy    = model._LastModifiedBy;
            viewModel._LastModifiedAgent = model._LastModifiedAgent;
            viewModel.Code               = model.Code;
            viewModel.Name               = model.Name;
            viewModel.Description        = model.Description;

            return(viewModel);
        }
        public MasterSource MapToModel(MasterSourceViewModel viewModel)
        {
            MasterSource masterSource = new MasterSource();

            masterSource.Id                 = viewModel.Id;
            masterSource._IsDeleted         = viewModel._IsDeleted;
            masterSource.Active             = viewModel.Active;
            masterSource._CreatedUtc        = viewModel._CreatedUtc;
            masterSource._CreatedBy         = viewModel._CreatedBy;
            masterSource._CreatedAgent      = viewModel._CreatedAgent;
            masterSource._LastModifiedUtc   = viewModel._LastModifiedUtc;
            masterSource._LastModifiedBy    = viewModel._LastModifiedBy;
            masterSource._LastModifiedAgent = viewModel._LastModifiedAgent;
            masterSource.Code               = viewModel.Code;
            masterSource.Name               = viewModel.Name;
            masterSource.Description        = viewModel.Description;

            return(masterSource);
        }