forked from MDCPS/DamageAssessment_Backend
Update survey response, adding EmployeeId , Location Id as int, adjust end point for ansers submission in batch
This commit is contained in:
@ -1,29 +1,18 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace DamageAssesment.Api.Questions.Models
|
||||
namespace DamageAssesment.Api.Questions.Models
|
||||
{
|
||||
public class MultiLanQuestion: BaseQuestion
|
||||
{
|
||||
public MultiLanguage Questions { get; set; }
|
||||
}
|
||||
public class Question: BaseQuestion
|
||||
public class Question: BaseQuestion
|
||||
{
|
||||
public List<QuestionsTranslation> Questions { get; set; }
|
||||
}
|
||||
public class BaseQuestion
|
||||
{
|
||||
public int Id { get; set; }
|
||||
//public int QuestionTypeID { get; set; }
|
||||
|
||||
public string TypeText { get; set; } = string.Empty;
|
||||
|
||||
public int QuestionNumber { get; set; }
|
||||
public bool IsRequired { get; set; }
|
||||
public bool Comment { get; set; }
|
||||
|
||||
public bool Key { get; set; }
|
||||
public int? SurveyId { get; set; }
|
||||
public int CategoryId { get; set; }
|
||||
// public int? Survey_SurveyID { get; set; }
|
||||
}
|
||||
}
|
||||
|
@ -3,10 +3,10 @@
|
||||
public class QuestionsTranslation
|
||||
{
|
||||
public string QuestionText { get; set; }
|
||||
public string Language { get; set; } = "En";
|
||||
public string Language { get; set; } = "en";
|
||||
}
|
||||
public class MultiLanguage
|
||||
public class MultiLanguage : BaseQuestion
|
||||
{
|
||||
public object questionText { get; set; }
|
||||
public Dictionary<string,string> Text { get; set; }
|
||||
}
|
||||
}
|
||||
|
@ -5,6 +5,6 @@
|
||||
public int CategoryId { get; set; }
|
||||
public string IconName { get; set; }
|
||||
public string IconLibrary { get; set; }
|
||||
public List<MultiLanQuestion> Questions { get; set; }
|
||||
public List<MultiLanguage> QuestionsText { get; set; }
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user