public void DeleteQuestion(ServiceRegisterViewModel model, Guid idAccount) { var service = ConvertService.FromServiceRegisterViewModel(model); var section = service.ServiceDetails.FirstOrDefault(s => s.Id == Guid.Parse(model.CurrentSection)); var question = section.Questions.FirstOrDefault(q => q.Id == Guid.Parse(model.CurrentQuestion)); question.StatusRegister = CStatusRegister.Delete; _questionDao.InsertOrUpdate(question); }