public void Post([FromBody] UserAction input) { if (string.IsNullOrEmpty(input.User)) { input.User = HttpContext.Current.Request.UserHostAddress; } _repository.Post(input.Action, input.User); }