public static SwitchProject.Models.schemeViewModel ConvertToViewModel(this Switch.Data.Models.Schemes obj)
 {
     return(new schemeViewModel
     {
         ChannelId = obj.Channel.Id,
         Description = obj.Description,
         FeesId = obj.Fees.Id,
         Name = obj.Name,
         RoutesId = obj.Route.Id,
         TransTypeId = obj.TransType.Id,
         IsDeleted = obj.IsDeleted
     });
 }
        public static Switch.Data.Models.Schemes ConvertToEntityModel(this schemeViewModel oView, Channels channel, Fees Fees, Routes Routes, TransactionType TransType)
        {
            var Schemes = new Switch.Data.Models.Schemes();

            Schemes.Channel     = channel;
            Schemes.Description = oView.Description;
            Schemes.Fees        = Fees;
            Schemes.Id          = oView.Id;
            Schemes.Name        = oView.Name;
            Schemes.Route       = Routes;
            Schemes.TransType   = TransType;
            Schemes.IsDeleted   = oView.IsDeleted;
            return(Schemes);
        }