示例#1
0
        public async Task <IActionResult> Post([FromBody] UserRole userRole)
        {
            try
            {
                await _userRoleService.CreateRole(userRole);

                return(Ok("Tambah Role Berhasil"));
            }
            catch (Exception ex)
            {
                return(BadRequest(ex.Message));
            }
        }