//get one client Detial Info, including interests public ClientDetailInfo getOneUserDetailInfo(string id) { Client client = db.Clients.Find(id); List<string> interests = new List<string>(); interests = (from c_i in db.ClientInterests where c_i.UserName == client.UserName select c_i.Interest1.interest1).ToList(); ClientDetailInfo ClientDetailinfo = new ClientDetailInfo(client, interests); return ClientDetailinfo; }
public ActionResult UploadProfileImage(HttpPostedFileBase photo, ClientDetailInfo updateClientInfo) { string message = updateUserProfile(photo, updateClientInfo.client.UserName); ViewBag.Message = message; return RedirectToAction("UserProfile", new { userName = updateClientInfo.client .UserName }); }