public ActionResult TaskFinalAttachment(int id) { var fileToRetrieve = db.TaskFinalAttachment.Find(id); byte[] file = blobManager.DownloadBlobClient(fileToRetrieve.TaskId.ToLower(), cmsMgr.GetTaskFileName(fileToRetrieve.FileId).ToLower()); return(File(file, fileToRetrieve.ContentType, fileToRetrieve.FileName)); }