Api: added module id

This commit is contained in:
pavelbannov 2019-07-29 13:04:43 +03:00
parent a80b66612d
commit aad452174e

View File

@ -1,9 +1,11 @@
using ASC.Web.Core;
using System;
using ASC.Web.Core;
namespace ASC.Api.Core
{
public class Module
{
public Guid Id { get; set; }
public string Title { get; set; }
public string Link { get; set; }
public string ImageUrl { get; set; }
@ -12,6 +14,7 @@ namespace ASC.Api.Core
public Module(Product product, bool isPrimary = false)
{
Id = product.ProductID;
Title = product.Name;
Description = product.Description;
ImageUrl = product.Context.LargeIconFileName;