public void EditWebSiteLink(EditWebSiteLinkCommand command)
        {
            var webSiteLink = _webSiteLinkService.Find(command.WebSiteLinkId);

            webSiteLink.Name     = command.Name;
            webSiteLink.Link     = command.Link;
            webSiteLink.ImageUrl = command.ImageUrl;
            _webSiteLinkService.Update(webSiteLink);
            _unitOfWork.SaveChanges();
        }
Ejemplo n.º 2
0
        public WebSiteLinkDTO GetById(Guid webSiteLinkId)
        {
            var webSiteLink = _webSiteLinkService.Find(webSiteLinkId);

            return(Mapper.Map <Domain.Entity.WebSiteLink, WebSiteLinkDTO>(webSiteLink));
        }