public async Task <IActionResult> GetInboxCount() { string serialNo = HttpContext.Request.Query["serialNo"].ToString(); GetInboxCountResponse response = _iAddAuthorizedServiceService.GetInboxCount(); return(Ok(response)); }
public IActionResult GetInboxCount() { var response = _addAuthorizedService.GetInboxCount(); if (response.isSuccess == false) { return(null); } return(Ok(response)); }