Exemplo n.º 1
0
        public async Task <JsonResult> AddDocument(AddNewDocumentViewModel model)
        {
            if (!ModelState.IsValid)
            {
                return(Json(new GenericResult()
                {
                    Result = false,
                    Message = "Missing selected file"
                }));
            }

            return(Json(await ActivityService.AddDocument(Session, model)));
        }