public IActionResult TotalReasonByNIK(string NIK) { var result = _chartRepository.TotalReasonByNIK(NIK); if (result != null) { return(Ok(new { status = HttpStatusCode.OK, result, message = "Data Found" })); } else { return(NotFound(new { status = HttpStatusCode.NotFound, message = "Data Not Found", result = "" })); } }