public string Get(string setting) { if (setting == "init") { try { _imageGalleryRepository.RemoveAll(); _imageGalleryRepository.Insert(new ImageGallery() { Id = "1", Description = "If you're a service business, freelancer or entrepreneur, the Skillvo Digital Marketing Platform is designed for you to showcase your work and connect you with clients seeking your skills and services.", Comments = "Automated search engine optimization", Path = "~/Images/skillVo1.jpg", Title = "Skill Vo1", CreatedOn = DateTime.Now, UpdatedOn = DateTime.Now, UserId = "1" }); _imageGalleryRepository.Insert(new ImageGallery() { Id = "2", Description = "If you're a service business, freelancer or entrepreneur, the Skillvo Digital Marketing Platform is designed for you to showcase your work and connect you with clients seeking your skills and services.", Comments = "Automated search engine optimization", Path = "~/Images/skillVo1.jpg", Title = "Skill Vo2", CreatedOn = DateTime.Now, UpdatedOn = DateTime.Now, UserId = "1" }); _imageGalleryRepository.Insert(new ImageGallery() { Id = "3", Description = "If you're a service business, freelancer or entrepreneur, the Skillvo Digital Marketing Platform is designed for you to showcase your work and connect you with clients seeking your skills and services.", Comments = "Automated search engine optimization", Path = "~/Images/skillVo1.jpg", Title = "Skill Vo3", CreatedOn = DateTime.Now, UpdatedOn = DateTime.Now, UserId = "1" }); _imageGalleryRepository.Insert(new ImageGallery() { Id = "4", Description = "If you're a service business, freelancer or entrepreneur, the Skillvo Digital Marketing Platform is designed for you to showcase your work and connect you with clients seeking your skills and services.", Comments = "Automated search engine optimization", Path = "~/Images/skillVo1.jpg", Title = "Skill Vo4", CreatedOn = DateTime.Now, UpdatedOn = DateTime.Now, UserId = "2" }); return("Seed Done"); } catch (Exception) { throw; } } return("unknownRequest"); }
public async Task AddImage(ImageGallery item) { await _imageRepository.Insert(item); }