/// <summary> /// /// </summary> /// <param name="model"></param> /// <returns></returns> internal ProjectViewModel BindProjectModel(ProjectViewModel model) { model.PriorityList = projectModel.ProjectPriorityList(); model.StatusList = projectModel.ProjectStatusList(); model.ClientList = projectModel.ClientList(); model.ListReferenceList = projectModel.ListReferenceList(model.ClientId); //new Dictionary<int, string>(); model.Choice = new Dictionary <bool, string> { { false, "No" }, { true, "Yes" } }; model.AllotedToList = new Dictionary <string, string> { { "Vendor", "Vendor" }, { "Inhouse", "Inhouse" } }; if (model.ExpectedDeliveryDate != null) { model.ExpectedDeliveryDateText = model.ExpectedDeliveryDate.Value.ToString("dd/MM/yyyy"); } if (model.ActualDeliveryDate != null) { model.ActualDeliveryDateText = model.ActualDeliveryDate.Value.ToString("dd/MM/yyyy"); } if (model.ApprovalDate != null) { model.ApprovalDateText = model.ApprovalDate.Value.ToString("dd/MM/yyyy"); } if (model.FTPUploadDate != null) { model.FTPUploadDateText = model.FTPUploadDate.Value.ToString("dd/MM/yyyy"); } return(model); }