public static ActionResult Register(User user, string apiKey) { if (apiKey != Configuration.ApiKey) { return new ActionResult { Message = "Api Key invalid!" } } ; return(_query.CreateUser(user)); }