자주 사용되는 메소드들
자주 사용되는 메소드들
자주 사용되는 메소드들
자주 사용되는 메소드들
public async Task <JsonResult> OnlyGetTotalMessagesInfor() { var result = await _messageRepository.GetInboxInformation(SiteUser.UserId); if (result != null && result.Length >= 2) { return(Json(new { inboxTotal = result[0], starredTotal = result[1] })); } return(Json(new { inboxTotal = 0, starredTotal = 0, })); }