Unique name of uploaded files

If you want to prevent situation that you have the same name of upload files use this example: var fileToSave = ┬áDateTime.Now.ToString(“yyyyMMddHHmmssfff”) + “_” + Guid.NewGuid().ToString(“N”) + “-” + SomeYourModelsId + “.pdf”;