Ejemplo n.º 1
0
        public async Task<IActionResult> SubmitResponse(SubmitResponseAjaxViewModel model)
        {
			var userUUID = this._appRepository.GetUserFromName(this.User.Identity.Name).Id;
			await this._appRepository.AddPostedAnswer(userUUID, model.Title, model.Author, model.Message);

            return new JsonResult(new { Message = "Feed Entry Updated" });
        }
Ejemplo n.º 2
0
        public async Task <IActionResult> SubmitResponse(SubmitResponseAjaxViewModel model)
        {
            var userUUID = this._appRepository.GetUserFromName(this.User.Identity.Name).Id;

            await this._appRepository.AddPostedAnswer(userUUID, model.Title, model.Author, model.Message);

            return(new JsonResult(new { Message = "Feed Entry Updated" }));
        }