public ActionResult <int> GetNumberOfNotification(string ID) { try { var userInDB = _userManager.FindByIdAsync(ID).Result; if (userInDB == null) { return(BadRequest("ID not found!")); } int result = _userNotificationService.GetNumberOfNotification(ID); return(Ok(result)); } catch (Exception e) { return(BadRequest(e.Message)); } }