Exemple #1
0
        public async Task <JsonResult> Delete(int profileId)
        {
            if (GlobalData.User.RoleId != (int)UserTypeEnum.Admin)
            {
                return(ToJsonResponse(false, "Vui lòng liên hệ admin"));
            }
            await _bizRevokeDebt.DeleteByIdAsync(GlobalData.User.IDUser, profileId);

            return(ToJsonResponse(true));
        }
Exemple #2
0
        public async Task <IActionResult> Delete(int profileId)
        {
            var result = await _bizRevoke.DeleteByIdAsync(profileId);

            return(ToResponse(result));
        }