public IActionResult Upload(IFormFile assemblyFile) { if (assemblyFile == null || assemblyFile.Length == 0) { return(BadMsg("UploadFile.Error")); } // Todo, must be *.dll var fileInfo = _fileInfoService.SaveInFile(assemblyFile); var entity = new Assembly() { Name = fileInfo.Filename, Filename = fileInfo.Filename, FileInfo = fileInfo, Deleted = false, }; _assemblyService.Insert(entity); // return(OkMsg()); }