Пример #1
0
        public async Task <ActionResult> PostRemoveMember(Lab lab, string userId)
        {
            await LabsDao.RemoveMember(this, lab.LabId, userId);

            return(RedirectToAction("Members", new { lab = lab.LabId }));
        }
Пример #2
0
        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));
        }