public ViewResult UploadPhoto() { IpAddress ip = new IpAddress(); Photo newPhoto = new Photo(); newPhoto.IpAddress = ip.GetCurrent(); return(View(newPhoto)); }