コード例 #1
0
        public IActionResult CreateCallOutsideSystem([FromBody] CallOutsideSystemDto callOutsideSystemDto)
        {
            var response = _callManagerRepository.CreateCallOutsideSystem(callOutsideSystemDto, new Guid(User.FindFirst(ClaimTypes.NameIdentifier).Value));
            var json     = JsonConvert.SerializeObject(response);

            return(StatusCode(response.code, json));
        }
コード例 #2
0
        public IActionResult UpdateCallOutsideSystem(string id, [FromBody] CallOutsideSystemDto callOutsideSystemDto)
        {
            if (!_validate.IsGuid(id))
            {
                return(StatusCode(400, new
                {
                    message = "id IS NOT GUID"
                }));
            }
            var response = _callManagerRepository.UpdateCallOutsideSystem(id, callOutsideSystemDto, new Guid(User.FindFirst(ClaimTypes.NameIdentifier).Value));
            var json     = JsonConvert.SerializeObject(response);

            return(StatusCode(response.code, json));
        }