示例#1
0
 public IActionResult Approve(Guid idRequest)
 {
     try
     {
         var respon = _friendService.Approve(idRequest);
         return(Ok(new ApiResponse(respon.status == true ? 200 : 400, respon.message)));
     }
     catch (Exception ex)
     {
         return(BadRequest(new ApiBadRequestResponse(400, "Terjadi Kesalahan")));
     }
 }
 public IActionResult ApproveRequest(Guid idRequest)
 {
     try
     {
         var responAPI = _friendService.Approve(idRequest);
         return(Ok(responAPI));
     }
     catch (Exception ex)
     {
         return(BadRequest(new ApiBadRequestResponse(400, "Terjadi Kesalahan")));
     }
 }