protected virtual async Task <ActionResult> updEnreg(List <Enregistrement> data) { return(new JsonnResult { Data = new { success = true, data = await enregRepository.UpdEnreg(data, UserName, User.IsInRole("jrpkm"), User.IsInRole("Admin"), EnregTypeID) } }); }