public object Put(UpdateAsset request) { var entity = request.ConvertTo <Asset>(); return(InTransaction(db => { Logic.Update(entity); return new CommonResponse(Logic.GetById(entity.Id)); })); }