示例#1
0
        public async Task <IActionResult> AddComment(OffRosterRequestComment offRosterRequestComment)
        {
            await _offRosterRequestRepository.AddComment(offRosterRequestComment);

            await Task.Delay(250);

            return(RedirectToAction("RequestsToAction"));
        }
示例#2
0
        public void Post([FromBody] OffRosterRequestComment comment)
        {
            if (comment.OffRosterRequestId > 0)
            {
                comment.CommentedAt = DateTime.Now;
                comment.CommentedBy = "Dave";

                _offRosterRequestRepository.AddNewComment(comment);
            }
        }