public void Update(Troll_UserUpdateRequest data)
        {
            string storeProc = "[dbo].[Trolli_User_Update]";

            _dataProvider.ExecuteNonQuery(storeProc, delegate(SqlParameterCollection sqlParams)
            {
                sqlParams.AddWithValue("@Id", data.Id);
                sqlParams.AddWithValue("@UserName", data.UserName);
                sqlParams.AddWithValue("@Password", data.Password);
            });
        }
        public HttpResponseMessage Update(int id, Troll_UserUpdateRequest data)
        {
            if (!ModelState.IsValid)
            {
                return(Request.CreateErrorResponse(HttpStatusCode.BadRequest, ModelState));
            }
            _service.Update(data);
            SuccessResponse responseBody = new SuccessResponse();

            return(Request.CreateResponse(HttpStatusCode.Created, responseBody));
        }