Exemplo n.º 1
0
        public ActionResult AddUserToMap(string mapId)
        {
            AddUserToMapViewModel m = new AddUserToMapViewModel {
                MId = mapId
            };

            return(View(m));
        }
Exemplo n.º 2
0
 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());
 }