Пример #1
0
        private void GetNocQuestion(HatzolahOrm orm, HatzolahNoc noc)
        {
            var nocQuestionResult = orm.Question.Select(x => new { x.Question, x.QuestionId }).Where(m => m.QuestionId == noc.QuestionId).FirstOrDefault();

            if (nocQuestionResult != null)
            {
                noc.Question = nocQuestionResult.Question;
            }
        }
Пример #2
0
        private HatzolahNoc MapNoc(HatzolahNoc noc)
        {
            var hatzolahNoc = new HatzolahNoc();

            hatzolahNoc.Tone         = noc.Tone;
            hatzolahNoc.CodeOneFlag  = noc.CodeOneFlag;
            hatzolahNoc.Instructions = noc.Instructions;
            hatzolahNoc.Noc          = noc.Noc;

            return(noc);
        }
Пример #3
0
        public HatzolahNoc GetDefaultNoc(string description)
        {
            HatzolahNoc noc = new HatzolahNoc
            {
                Tone         = "Single Tone or use your own judgement",
                Instructions = "Dispatch Two Units  or use your own judgement",
                Noc          = description
            };

            return(noc);
        }