Beispiel #1
0
        public async Task <ActionResult> PostAddMember(Lab lab, string userId)
        {
            await LabsDao.AddMember(this, lab.LabId, userId);

            return(RedirectToAction("Members", new { lab = lab.LabId }));
        }
Beispiel #2
0
        public async Task <IHttpActionResult> AddMember(long labId, string userId)
        {
            var(_, isLabManager) = await GetLab(labId);

            return(JsonWithPermissions(await LabsDao.AddMember(this, labId, userId), isLabManager, isLabManager, isLabManager));
        }