public async Task <ObjectResult> AddNewVersionOfMaterial([FromForm] IFormFile uploadedFile) { try { var ans = await _materialsService.AddNewVersionOfMaterial(new FilesDto { uploadedFile = uploadedFile }); return(Ok(ans)); } catch (Exception e) { return(BadRequest(e.Message)); } }