public IHttpActionResult FriendRequestResponse(NotificationDto notificationDto) { if (!ModelState.IsValid) { return(StatusCode(HttpStatusCode.BadRequest)); } var notification = _notificationService.GetNotificationById(notificationDto.Id); if (notificationDto.IsAccepted) { _notificationService.AcceptFriendRequest(notification); } notification.IsRead = true; _notificationService.Complete(); return(Ok()); }