public IActionResult Detail(string id) { var json = JsonConvert.SerializeObject(branchRepository.Detail(id)); var data = branchRepository.Detail(id); ResponseListForm <BranchDetailDto> response = new ResponseListForm <BranchDetailDto>(data, "ok", 200); var json2 = JsonConvert.SerializeObject(response); return(Content(json2, "application/json")); }