public async Task <ActionResult> PostRemoveMember(Lab lab, string userId) { await LabsDao.RemoveMember(this, lab.LabId, userId); return(RedirectToAction("Members", new { lab = lab.LabId })); }
public async Task <IHttpActionResult> RemoveMember(long labId, string userId) { var(_, isLabManager) = await GetLab(labId); return(JsonWithPermissions(await LabsDao.RemoveMember(this, labId, userId), isLabManager, isLabManager, isLabManager)); }