public IActionResult UploadFile(IList <IFormFile> files) { var entity = new DocumentDto() { CreateDate = DateTime.Now, IdUser = (int)_fn.User().Id, Author = _fn.User().UserName, Important = false, IsActive = true, Url = _fn.UploadFile(files) }; return(Json(entity)); }