public ActionResult EditProfile(PrivateProfileModel model) { _gate.Dispatch( new AlterPrivateProfileCommand( User.TryGetPrincipal().UserId, model.FirstName, model.LastName, model.Address, model.Suburb, model.City, model.Country, model.Postcode, model.Gender, model.Orientation, model.Romance, model.Friendship) { Description = model.Description, Age = model.Age, }); return RedirectToAction("Index"); }
public ActionResult EditProfile(PrivateProfileModel model) { _gate.Dispatch( new AlterPrivateProfileCommand( User.TryGetPrincipal().UserId, model.FirstName, model.LastName, model.Address, model.Suburb, model.City, model.Country, model.Postcode, model.Gender, model.Orientation, model.Romance, model.Friendship) { Description = model.Description, Age = model.Age, }); return(RedirectToAction("Index")); }