public async Task <IActionResult> AddComment(OffRosterRequestComment offRosterRequestComment) { await _offRosterRequestRepository.AddComment(offRosterRequestComment); await Task.Delay(250); return(RedirectToAction("RequestsToAction")); }
public void Post([FromBody] OffRosterRequestComment comment) { if (comment.OffRosterRequestId > 0) { comment.CommentedAt = DateTime.Now; comment.CommentedBy = "Dave"; _offRosterRequestRepository.AddNewComment(comment); } }