public ActionResult AddUserToMap(string mapId) { AddUserToMapViewModel m = new AddUserToMapViewModel { MId = mapId }; return(View(m)); }
public ActionResult AddUserToMap(AddUserToMapViewModel model) { model.UId = UserManager.FindByEmail(model.Email).Id; if (AddUserToMap(model.UId.ToString(), model.MId.ToString(), model.Permission)) { return(View()); } return(View()); }