public async Task <ActionResult> PostAddMember(Lab lab, string userId) { await LabsDao.AddMember(this, lab.LabId, userId); return(RedirectToAction("Members", new { lab = lab.LabId })); }
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)); }