Exemplo n.º 1
0
        public void Update(SquadTagUpdateRequest model)
        {
            DataProvider.ExecuteNonQuery(GetConnection, "dbo.SquadTag_Update",
                                         inputParamMapper : delegate(SqlParameterCollection paramCollection)
            {
                paramCollection.AddWithValue("@Id", model.Id);
                MapCommonParameters(model, paramCollection);
            }
                                         );

            return;
        }
Exemplo n.º 2
0
        public HttpResponseMessage Put(SquadTagUpdateRequest model)
        {
            if (!ModelState.IsValid)
            {
                return(Request.CreateResponse(HttpStatusCode.BadRequest, ModelState));
            }

            _squadTagService.Update(model);

            SuccessResponse response = new SuccessResponse();

            return(Request.CreateResponse(HttpStatusCode.OK, response));
        }