public ImageUpload AddImage(IFormFile formfile) { var image = new ImageUpload { ContentImage = ConvertToBytes(formfile), UploadDateTime = DateTime.Now }; var uploadedImage = _imageUploadService.Create(image); return(uploadedImage); }