//[Authorize] public int AddQuestion(Question question) { question.date = DateTime.MinValue; question.userName = Helpers.GetUserName(HttpContext); return(questionRepo.Create(question)); }