Exemple #1
0
        public async Task EditLink(Guid id, string title, string url, string describe)
        {
            using (ILinkService linkService = new LinkService())
            {
                var data = await linkService.GetAllAsync().FirstOrDefaultAsync(m => m.Id == id);

                if (data != null)
                {
                    data.Title    = title;
                    data.Url      = url;
                    data.Describe = describe;
                    await linkService.EditAsync(data);
                }
            }
        }