EnVisageOnline/Main/Source/PrevuWebAPI/Models/APIProjectModel.cs

42 lines
1.3 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace PrevuWebAPI.Models
{
public class APIProjectModel
{
public string _Id { get; set; }
public string ProjectName { get; set; }
public string ProjectNumber { get; set; }
public string Priority { get; set; }
public DateTime? ScenarioStartDate { get; set; }
public DateTime? ScenarioEndDate { get; set; }
public string CompanyName { get; set; }
public string ClientName { get; set; }
public string ProjectType { get; set; }
public string ProjectStatus { get; set; }
public string Probability { get; set; }
public List<APIStrategicGoalModel> StrategicGoals { get; set; }
public List<APIContactModel> InternalContacts { get; set; }
public List<APIContactModel> ExternalContacts { get; set; }
public List<APITeamModel> Teams { get; set; }
public List<APIProjectRoleModel> ProjectRoles { get; set; }
public int PriotiryInt()
{
int priority = 1;
try
{
priority = Int32.Parse(this.Priority);
}catch(Exception)
{
}
return priority;
}
}
}