public ActionResult GetSentByUser([FromQuery] int user) { var list = _repository.AllSentByUser(user); if (list.Count == 0) { return(NoContent()); } return(Ok(list)); }