public SacrificeDonationViewModel Get(int?Id)
        {
            var sacrificedonations = _repository.Get(x => x.Id == Id);

            return(new SacrificeDonationViewModel
            {
                CreationDate = sacrificedonations.CreationDate,
                Status = sacrificedonations.Status,
                IsItDeleted = sacrificedonations.IsItDeleted,
                DateOfUpdate = sacrificedonations.DateOfUpdate,
                Id = sacrificedonations.Id,

                Name = sacrificedonations.Name,
                Surname = sacrificedonations.Surname,
                Email = sacrificedonations.Email,
                City = sacrificedonations.City,
                Adress = sacrificedonations.Adress,
                PhoneNumber = sacrificedonations.PhoneNumber,
                ZipCode = sacrificedonations.ZipCode,
                Other = sacrificedonations.Other,
                SacrificeCount = sacrificedonations.SacrificeCount,
                SacrificeType = sacrificedonations.SacrificeType,
                Total = sacrificedonations.Total
            });
        }
        public void Update(NewsCategoryViewModel viewModel)
        {
            var newscategory = _repository.Get(x => x.Id == viewModel.Id);

            newscategory.Status       = viewModel.Status;
            newscategory.DateOfUpdate = DateTime.Now;
            newscategory.IsItDeleted  = viewModel.IsItDeleted;
            newscategory.CategoryName = viewModel.Category;
            newscategory.SiteLanguage = viewModel.SiteLanguage;

            _repository.Update(newscategory);
        }
        public SacrificePriceViewModel Get(int?Id)
        {
            var boards = _repository.Get(x => x.Id == Id);

            return(new SacrificePriceViewModel
            {
                CreationDate = boards.CreationDate,
                Status = boards.Status,
                IsItDeleted = boards.IsItDeleted,
                DateOfUpdate = boards.DateOfUpdate,
                Id = boards.Id,

                Price = boards.Price
            });
        }
        public SubscriberViewModel Get(int?Id)
        {
            var subscriber = _repository.Get(x => x.Id == Id);

            return(new SubscriberViewModel
            {
                CreationDate = subscriber.CreationDate,
                Status = subscriber.Status,
                IsItDeleted = subscriber.IsItDeleted,
                DateOfUpdate = subscriber.DateOfUpdate,
                Id = subscriber.Id,

                Email = subscriber.Email
            });
        }
Beispiel #5
0
        public SMSTemplatesViewModel Get(int?Id)
        {
            var smstemplates = _repository.Get(x => x.Id == Id);

            return(new SMSTemplatesViewModel
            {
                CreationDate = smstemplates.CreationDate,
                Status = smstemplates.Status,
                IsItDeleted = smstemplates.IsItDeleted,
                DateOfUpdate = smstemplates.DateOfUpdate,
                Id = smstemplates.Id,
                SiteLanguage = smstemplates.SiteLanguage,

                Subject = smstemplates.Subject,
                Message = smstemplates.Message
            });
        }
        public ContactRequestsViewModel Get(int Id)
        {
            var contactRequests = _repository.Get(x => x.Id == Id);

            return(new ContactRequestsViewModel
            {
                CreationDate = contactRequests.CreationDate,
                Status = contactRequests.Status,
                IsItDeleted = contactRequests.IsItDeleted,
                DateOfUpdate = contactRequests.DateOfUpdate,
                Id = contactRequests.Id,
                Email = contactRequests.Email,
                Subject = contactRequests.Subject,
                NameSurname = contactRequests.NameSurname,
                Message = contactRequests.Message,
            });
        }
        public RelatedOrganizationViewModel Get(int?Id)
        {
            var relatedorganizations = _repository.Get(x => x.Id == Id);

            return(new RelatedOrganizationViewModel
            {
                CreationDate = relatedorganizations.CreationDate,
                Status = relatedorganizations.Status,
                IsItDeleted = relatedorganizations.IsItDeleted,
                DateOfUpdate = relatedorganizations.DateOfUpdate,
                Id = relatedorganizations.Id,
                SiteLanguage = relatedorganizations.SiteLanguage,
                Name = relatedorganizations.Name,
                Adress = relatedorganizations.Adress,
                Website = relatedorganizations.Website,
            });
        }
        public SermonViewModel Get(int?Id)
        {
            var sermons = _repository.Get(x => x.Id == Id);

            return(new SermonViewModel
            {
                CreationDate = sermons.CreationDate,
                Status = sermons.Status,
                IsItDeleted = sermons.IsItDeleted,
                DateOfUpdate = sermons.DateOfUpdate,
                Id = sermons.Id,
                SiteLanguage = sermons.SiteLanguage,
                Title = sermons.Title,
                Content = sermons.Content,
                Image = sermons.Image,
            });
        }
Beispiel #9
0
        public SisterOrganizationViewModel Get(int?Id)
        {
            var sisterorganizations = _repository.Get(x => x.Id == Id);

            return(new SisterOrganizationViewModel
            {
                CreationDate = sisterorganizations.CreationDate,
                Status = sisterorganizations.Status,
                IsItDeleted = sisterorganizations.IsItDeleted,
                DateOfUpdate = sisterorganizations.DateOfUpdate,
                Id = sisterorganizations.Id,

                Name = sisterorganizations.Name,
                EstablishmentYear = sisterorganizations.EstablishmentYear,
                Adress = sisterorganizations.Adress,
                Website = sisterorganizations.Website,
            });
        }
Beispiel #10
0
        public UsersViewModel Get(int?Id)
        {
            var users = _repository.Get(x => x.Id == Id);

            return(new UsersViewModel
            {
                CreationDate = users.CreationDate,
                Status = users.Status,
                IsItDeleted = users.IsItDeleted,
                DateOfUpdate = users.DateOfUpdate,
                Id = users.Id,
                UserType = users.UserType,
                Password = users.Password,
                Degree = users.Degree,
                NameSurname = users.NameSurname,
                Email = users.Email,
            });
        }
Beispiel #11
0
        public VideoViewModel Get(int?Id)
        {
            var videos = _repository.Get(x => x.Id == Id);

            return(new VideoViewModel
            {
                CreationDate = videos.CreationDate,
                Status = videos.Status,
                IsItDeleted = videos.IsItDeleted,
                DateOfUpdate = videos.DateOfUpdate,
                Id = videos.Id,
                SiteLanguage = videos.SiteLanguage,

                Title = videos.Title,
                Thumbnail = videos.Thumbnail,
                Url = videos.Url
            });
        }
        public PublicationViewModel Get(int?Id)
        {
            var publication = _repository.Get(x => x.Id == Id);

            return(new PublicationViewModel
            {
                CreationDate = publication.CreationDate,
                Status = publication.Status,
                IsItDeleted = publication.IsItDeleted,
                DateOfUpdate = publication.DateOfUpdate,
                Id = publication.Id,
                SiteLanguage = publication.SiteLanguage,

                Name = publication.Name,
                Description = publication.Description,
                Image = publication.Image
            });
        }
        public AssociationViewModel Get(int?Id)
        {
            var associations = _repository.Get(x => x.Id == Id);

            return(new AssociationViewModel
            {
                CreationDate = associations.CreationDate,
                Status = associations.Status,
                IsItDeleted = associations.IsItDeleted,
                DateOfUpdate = associations.DateOfUpdate,
                Id = associations.Id,

                Name = associations.Name,
                Image = associations.Image,
                Adress = associations.Adress,
                Count = associations.Count,
            });
        }
        public SMSSettingsViewModel Get(int?Id)
        {
            var smssettings = _repository.Get(x => x.Id == Id);

            return(new SMSSettingsViewModel
            {
                CreationDate = smssettings.CreationDate,
                Status = smssettings.Status,
                IsItDeleted = smssettings.IsItDeleted,
                DateOfUpdate = smssettings.DateOfUpdate,
                Id = smssettings.Id,

                AppKey = smssettings.AppKey,
                Secret = smssettings.Secret,
                ConsumerKey = smssettings.ConsumerKey,
                ServiceName = smssettings.ServiceName
            });
        }
Beispiel #15
0
        public BoardViewModel Get(int?Id)
        {
            var boards = _repository.Get(x => x.Id == Id);

            return(new BoardViewModel
            {
                CreationDate = boards.CreationDate,
                Status = boards.Status,
                IsItDeleted = boards.IsItDeleted,
                DateOfUpdate = boards.DateOfUpdate,
                Id = boards.Id,

                NameSurname = boards.NameSurname,
                BoardType = boards.BoardType,
                Degree = boards.Degree,
                Image = boards.Image,
                Count = boards.Count
            });
        }
        public NewsViewModel Get(int?Id)
        {
            var news = _repository.Get(x => x.Id == Id);

            return(new NewsViewModel
            {
                CreationDate = news.CreationDate,
                Status = news.Status,
                IsItDeleted = news.IsItDeleted,
                DateOfUpdate = news.DateOfUpdate,
                Id = news.Id,
                SiteLanguage = news.SiteLanguage,
                Title = news.Title,
                Content = news.Content,
                Image = news.Image,
                Category = news.Category,
                NewsType = news.NewsType
            });
        }
Beispiel #17
0
        public EmailSettingsViewModel Get(int?Id)
        {
            var emailsettings = _repository.Get(x => x.Id == Id);

            return(new EmailSettingsViewModel
            {
                CreationDate = emailsettings.CreationDate,
                Status = emailsettings.Status,
                IsItDeleted = emailsettings.IsItDeleted,
                DateOfUpdate = emailsettings.DateOfUpdate,
                Id = emailsettings.Id,


                Username = emailsettings.Username,
                Password = emailsettings.Password,
                Host = emailsettings.Host,
                Port = emailsettings.Port,
                Mail = emailsettings.Mail
            });
        }
        public FitreDonationViewModel Get(int?Id)
        {
            var fitredonations = _repository.Get(x => x.Id == Id);

            return(new FitreDonationViewModel
            {
                CreationDate = fitredonations.CreationDate,
                Status = fitredonations.Status,
                IsItDeleted = fitredonations.IsItDeleted,
                DateOfUpdate = fitredonations.DateOfUpdate,
                Id = fitredonations.Id,

                Name = fitredonations.Name,
                Surname = fitredonations.Surname,
                Email = fitredonations.Email,
                City = fitredonations.City,
                Adress = fitredonations.Adress,
                PhoneNumber = fitredonations.PhoneNumber,
                ZipCode = fitredonations.ZipCode,
                AdditionalInfo = fitredonations.AdditionalInfo,
                FitreAmount = fitredonations.FitreAmount
            });
        }
Beispiel #19
0
        public AlmsDonationViewModel Get(int?Id)
        {
            var almsdonations = _repository.Get(x => x.Id == Id);

            return(new AlmsDonationViewModel
            {
                CreationDate = almsdonations.CreationDate,
                Status = almsdonations.Status,
                IsItDeleted = almsdonations.IsItDeleted,
                DateOfUpdate = almsdonations.DateOfUpdate,
                Id = almsdonations.Id,

                Name = almsdonations.Name,
                Surname = almsdonations.Surname,
                Email = almsdonations.Email,
                City = almsdonations.City,
                Adress = almsdonations.Adress,
                PhoneNumber = almsdonations.PhoneNumber,
                ZipCode = almsdonations.ZipCode,
                AdditionalInfo = almsdonations.AdditionalInfo,
                AlmsAmount = almsdonations.AlmsAmount
            });
        }
        public AidToMosquesViewModel Get(int?Id)
        {
            var aidtomosques = _repository.Get(x => x.Id == Id);

            return(new AidToMosquesViewModel
            {
                CreationDate = aidtomosques.CreationDate,
                Status = aidtomosques.Status,
                IsItDeleted = aidtomosques.IsItDeleted,
                DateOfUpdate = aidtomosques.DateOfUpdate,
                Id = aidtomosques.Id,

                Name = aidtomosques.Name,
                Surname = aidtomosques.Surname,
                Email = aidtomosques.Email,
                City = aidtomosques.City,
                Adress = aidtomosques.Adress,
                PhoneNumber = aidtomosques.PhoneNumber,
                ZipCode = aidtomosques.ZipCode,
                DonationAmount = aidtomosques.DonationAmount,
                Description = aidtomosques.Description
            });
        }
        public RansomDonationViewModel Get(int?Id)
        {
            var ransomdonations = _repository.Get(x => x.Id == Id);

            return(new RansomDonationViewModel
            {
                CreationDate = ransomdonations.CreationDate,
                Status = ransomdonations.Status,
                IsItDeleted = ransomdonations.IsItDeleted,
                DateOfUpdate = ransomdonations.DateOfUpdate,
                Id = ransomdonations.Id,

                Name = ransomdonations.Name,
                Surname = ransomdonations.Surname,
                Email = ransomdonations.Email,
                City = ransomdonations.City,
                Adress = ransomdonations.Adress,
                PhoneNumber = ransomdonations.PhoneNumber,
                ZipCode = ransomdonations.ZipCode,
                AdditionalInfo = ransomdonations.AdditionalInfo,
                RansomAmount = ransomdonations.RansomAmount
            });
        }
Beispiel #22
0
        public GeneralDonationViewModel Get(int?Id)
        {
            var generaldonations = _repository.Get(x => x.Id == Id);

            return(new GeneralDonationViewModel
            {
                CreationDate = generaldonations.CreationDate,
                Status = generaldonations.Status,
                IsItDeleted = generaldonations.IsItDeleted,
                DateOfUpdate = generaldonations.DateOfUpdate,
                Id = generaldonations.Id,

                Name = generaldonations.Name,
                Surname = generaldonations.Surname,
                Email = generaldonations.Email,
                City = generaldonations.City,
                Adress = generaldonations.Adress,
                PhoneNumber = generaldonations.PhoneNumber,
                ZipCode = generaldonations.ZipCode,
                Description = generaldonations.Description,
                DonationAmount = generaldonations.DonationAmount
            });
        }
        public SiteSettingsViewModel Get(int?Id)
        {
            var settings = _repository.Get(x => x.Id == Id);

            return(new SiteSettingsViewModel
            {
                CreationDate = settings.CreationDate,
                Status = settings.Status,
                IsItDeleted = settings.IsItDeleted,
                DateOfUpdate = settings.DateOfUpdate,
                Id = settings.Id,

                SiteLanguage = settings.SiteLanguage,

                AboutUs = settings.AboutUs,
                OurGoals = settings.OurGoals,
                Principle = settings.Principle,
                Logo = settings.Logo,
                Map = settings.Map,
                Phone = settings.Phone,
                Adress = settings.Adress,
                Email = settings.Email,
                Fax = settings.Fax,


                Facebook = settings.Facebook,
                Twitter = settings.Twitter,
                Instagram = settings.Twitter,
                Youtube = settings.Youtube,

                Slider1 = settings.Slider1,
                Slider2 = settings.Slider2,
                Slider3 = settings.Slider3,
                Slider4 = settings.Slider4,
            });
        }
        public SMSHistoryViewModel Get(int?Id)
        {
            var smshistories = _repository.Get(x => x.Id == Id);

            return(new SMSHistoryViewModel
            {
                CreationDate = smshistories.CreationDate,
                Status = smshistories.Status,
                IsItDeleted = smshistories.IsItDeleted,
                DateOfUpdate = smshistories.DateOfUpdate,
                Id = smshistories.Id,
                SiteLanguage = smshistories.SiteLanguage,


                Phone = smshistories.Phone,
                Message = smshistories.Message
            });
        }
        public EmailHistoryViewModel Get(int?Id)
        {
            var emailhistories = _repository.Get(x => x.Id == Id);

            return(new EmailHistoryViewModel
            {
                CreationDate = emailhistories.CreationDate,
                Status = emailhistories.Status,
                IsItDeleted = emailhistories.IsItDeleted,
                DateOfUpdate = emailhistories.DateOfUpdate,
                Id = emailhistories.Id,
                SiteLanguage = emailhistories.SiteLanguage,

                Subject = emailhistories.Subject,
                ReceiverMail = emailhistories.ReceiverMail,
                Message = emailhistories.Message
            });
        }