public static string GetFullPathToPhoto(string photoNameWithExtens) { var fName = Path.GetFileName(photoNameWithExtens); var stdPath = GetPathStandartPhotoDir() + fName; var userPhotoPath = GetPathUsersPhotoDir() + fName; if (MyFile.IsFileExist(userPhotoPath)) { return(userPhotoPath); } return(MyFile.IsFileExist(stdPath) ? stdPath : string.Empty); }