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 StrategicGoals { get; set; } public List InternalContacts { get; set; } public List ExternalContacts { get; set; } public List Teams { get; set; } public List ProjectRoles { get; set; } public int PriotiryInt() { int priority = 1; try { priority = Int32.Parse(this.Priority); }catch(Exception) { } return priority; } } }