Files
Disco/Disco.Web/Areas/Config/Models/Config/IndexModel.cs
T
2013-02-28 17:15:46 +11:00

26 lines
667 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Disco.Models.BI.Interop.Community;
namespace Disco.Web.Areas.Config.Models.Config
{
public class IndexModel
{
public bool UpdateAvailable
{
get
{
if (UpdateResponse != null)
{
var updateVersion = Version.Parse(UpdateResponse.Version);
return (updateVersion > typeof(DiscoApplication).Assembly.GetName().Version);
}
return false;
}
}
public UpdateResponse UpdateResponse { get; set; }
}
}