예제 #1
0
        public async Task <IActionResult> Delete(string roleName)
        {
            try
            {
                await _userRoleService.DeleteRolesAsync(roleName);

                return(Ok("Data berhasil didelete"));
            }
            catch (Exception ex)
            {
                return(BadRequest(ex.Message));
            }
        }